package Homework1Shapes;

public class ShapeDatabase 
{
	private ShapeCollection collection;
	
	//Constructor
	ShapeDatabase()
	{
		collection = new ShapeCollection();
	}
	
	//add a shape to the collection
	public void addShapeToCollection(Shape shape)
	{
		collection.addShape(shape);
	}
	
	//get the collection of shapes
	public ShapeCollection getCollection()
	{
		return collection;
	}
	
	//print the number of shapes in the database
	public void printNumberofShapes()
	{
		System.out.println("Number of shapes in database: " + collection.getNumberOfShapes());
	}
}
